body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

.course-detail-card {
      display: flex;
    align-items: stretch; /* 让子元素高度撑满 */
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    padding: 20px;
    gap: 20px;

    /* 让图片和文字内容等高 */
    align-items: stretch;
}

.course-cover {
    width: 350px;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #0078d7;
}

.meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.course-intro {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

.course-stats {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    gap: 25px;
    align-items: center;
    color: #555;
}

.small-number {
    font-size: 0.85rem; /* 注册人数数字小一号 */
    font-weight: 600;
}

.likes {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* 点赞按钮放大动画 */
.like-animate {
    animation: pulse-like 0.4s ease;
}

@keyframes pulse-like {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); }
    100% { transform: scale(1); }
}


/* 注册按钮放大动画 */
.register-animate {
  animation: register-scale 0.3s ease forwards;
}

@keyframes register-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.star-icon {
  cursor: pointer;
  fill: none; /* 默认空心 */
  stroke: gold;
  stroke-width: 2;
  transition: fill 0.3s;
}
.star-icon.like {
  fill: gold; /* 实心 */
  stroke: gold;
}

.course-settings p {
    margin: 5px 0;
    font-size: 1rem;
    color: #444;
}

@media (max-width: 700px) {
    .course-detail-card {
        flex-direction: column;
        align-items: center;
    }
    .course-cover {
        width: 90%;
        height: auto;
        max-height: 250px;
    }
    .course-info {
        width: 90%;
    }
}
/*按钮*/
.register-btn-container {
    margin-top: auto; /* 自动推到下面 */
    text-align: right; /* 右对齐 */
}

.btn-register {
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    /* box-shadow: 0 4px 8px rgba(0,120,215,0.3); */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-register:hover {
    background-color: #005ea2;
    /* box-shadow: 0 6px 12px rgba(0,94,162,0.5); */
}

.btn-register:active {
    background-color: #004578;
    box-shadow: none;
}
/*简介区*/
.course-tabs-container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px 30px;
}

.tabs {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.tab-btn:hover {
    color: #0078d7;
}

.tab-btn.active {
    color: #0078d7;
    border-bottom-color: #0078d7;
    font-weight: 600;
}

.tab-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    min-height: 120px;
}
.course-tabs-container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px 30px;

    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.tabs-left {
    flex: 1 1 0;
}

.teacher-info {
    flex: 0 0 220px;
    border-left: 1px solid #eee;
    padding-left: 20px;
    font-size: 1rem;
    color: #444;
}

.teacher-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #050607;
    font-weight: 600;
    text-align: center;
}

.teacher-info p {
    margin: 10px 0;
    word-wrap: break-word;
}

.teacher-info a {
    color: #0078d7;
    text-decoration: none;
}

.teacher-info a:hover {
    text-decoration: underline;
}
.liked {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.registered {
    background-color: #0078d7 !important;
    color: white !important;
    pointer-events: none; /* 防止重复点击 */
    cursor: default;
}